<script>
export default {
  name: 'basic component',
  created() {
    console.log( 'Basic组件被创建' );
  },
  unmounted() {
    console.log( 'Basic组件被卸载' );
  },
  beforeRouteEnter(to, from) {
    console.log( 'Basic beforeRouteEnter - from:', from );
    console.log( 'Basic beforeRouteEnter - to:', to );
  },
  beforeRouteLeave(to, from) {
    console.log( 'Basic beforeRouteLeave - from:', from );
    console.log( 'Basic beforeRouteLeave - to:', to );
  }
}
</script>

<template>
  <div>BASIC</div>
</template>